package com.dropdb.demo.bean.bo;


import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 后台商品查询BO
 */
@Data
public class AdminListGoodsBO {
    @NotNull(message = "页数不能为空")
    @Min(value = 1, message = "页数不能小于1")
    private Integer page;

    @NotNull(message = "条数不能为空")
    @Min(value = 1, message = "条数不能小于1")
    private Integer limit;

    private String goodsSn;

    private String name;

    @NotBlank(message = "参数非法")
    private String sort;

    @NotBlank(message = "参数非法")
    private String order;
}
